﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsProject _iCsProject = null;

        public static ICsProject CreateCsProject()
        {
            if (_iCsProject == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.CsProject_Sys";
                _iCsProject = (ICsProject)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsProject;
        }
    }

    public interface ICsProject
    {
        bool UpdateProject(DataTable dt);
        DataTable GetProjectIdentifierNotNull(String ActionCode, String OrganID);
        DataTable GetProjectIdentifierNull(String ActionCode, String OrganID);
        String GetIDByIdentitifer(string Identitifer);
    }
}
